package com.wanmait.demo.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.demo.mapper.OrderBackMapper;
import com.wanmait.demo.pojo.OrderBack;
import com.wanmait.demo.service.OrderBackService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class OrderBackServiceimpl implements OrderBackService {
    @Resource
    private OrderBackMapper orderBackMapper;
    @Override
    public void insert(Integer workerId,Integer orderId,String reason) {
        orderBackMapper.insert(workerId, orderId, reason);
    }

    @Override
    public void insertuserorder(Integer orderid, String reason) {
        orderBackMapper.insertuserorder(orderid,reason);//尹山坤
    }

    @Override
    public void insert(OrderBack object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(OrderBack object) {

    }

    @Override
    public OrderBack findById(Integer id) {
        return null;
    }

    @Override
    public List<OrderBack> findAll() {
        return null;
    }

    @Override
    public PageInfo<OrderBack> findPage(int pageNum, int pageSize) {
        return null;
    }
}
